﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GMS.BIZ
{
    public class ClassTeacher : GMS.BIZ.Staff
    {
        private Classes classes;
        public Classes Classes
        {
            get { return classes; }
            //set { classes = value; }
        }

        public ClassTeacher(string teacherID)
        {
            this.TeacherId = teacherID;
            this.GetStaffInfomation();
            //初始化Classes对象
            GMS.BIZ.Classes myClasses = new Classes(this.TeacherId);
            this.classes = null;
            this.classes = myClasses;
        }

        /// <summary>
        /// 获得所有班主任信息
        /// </summary>
        /// <returns>所有班主任信息的数据集</returns>
        static public DataSet GetAllClassTeacher()
        {
            GMS.ORM.DAL.UTeacher optUTeacher = new GMS.ORM.DAL.UTeacher();
            DataSet myDS = optUTeacher.GetList("if_classteacher = 1");
            return myDS;
        }
    }
}
